﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Triples {
    class FindAllSetsScoreCard : ScoreCard {
        private const int FoundSetBaseScore = 250;
        private readonly Timer Timer;
        private int SetNumber;

        public FindAllSetsScoreCard(Timer timer) {
            Timer = timer;
            SetNumber = 0;
        }

        protected override int GetSetScore() {
            int SpeedModifier = (int)Timer.RemainingTime.TotalSeconds;
            return (++SetNumber)*FoundSetBaseScore + SpeedModifier;
        }
    }
}
